﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WinForm_CS
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btnPrint1_Click(object sender, EventArgs e)
        {
            DateTime dt = DateTime.Now;
            //string str = dt.ToString(@"yyyy-MM-dd HH:mm:ss.fff")+"\n";
            string str = dt.ToString(@"HH:mm:ss.fff") + " : "+ btnPrint1.Left +","+ btnPrint1.Top+","+ btnPrint1.Width+","+ btnPrint1.Height
                + " ; this.Handle:" + this.Handle+ ", btnPrint1.Handle:" + btnPrint1.Handle + "\n";
            rtbMsg.AppendText(str);

            
        }

        private void btnClearMsg_Click(object sender, EventArgs e)
        {
            rtbMsg.Clear();
        }
    }
}
